import java.net.*;


public class WeatherSocket {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			ServerSocket s = new ServerSocket(9999);
			while (true) {
				Socket cs = s.accept();
				WeatherThread w = new WeatherThread(cs);
				w.start();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}